package com.teemo.equipment.service.impl;

import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.teemo.equipment.domain.dto.EquipmentPageDTO;
import com.teemo.equipment.domain.entity.Equipment;
import com.teemo.equipment.domain.entity.Hero;
import com.teemo.equipment.service.EquipmentService;
import com.teemo.equipment.mapper.EquipmentMapper;
import org.springframework.stereotype.Service;

/**
* @author 13348
* @description 针对表【lol_equipment(装备表)】的数据库操作Service实现
* @createDate 2024-07-19 22:16:13
*/
@Service
public class EquipmentServiceImpl extends ServiceImpl<EquipmentMapper, Equipment>
    implements EquipmentService{

    @Override
    public Page<Equipment> pageQuery(EquipmentPageDTO dto) {
        return this.lambdaQuery()
                .like(StrUtil.isNotBlank(dto.getName()), Equipment::getName, dto.getName())
                .page(dto.pageParam());
    }
}




